package edu.bit.water.dao;

import edu.bit.water.entity.MetaStandard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.stereotype.Repository;

import java.util.*;


@Mapper
@Repository
public interface MetaStandardDao {

    int insertMetaStandard(MetaStandard metaStandard) throws DataIntegrityViolationException;
    Integer getMaxId();
    int delete(@Param("id") int id);
    int update(MetaStandard metaStandard);
    List<MetaStandard> queryStandard();
}
